package com.bright.service;

import com.bright.pojo.Blog;
import com.bright.vo.BlogQuery;
import com.bright.vo.BlogVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface BlogService {
    Blog getBlog(long id);

    Page<Blog> initBlogs(Pageable pageable);

    List<Blog> listBlogsPublished(Integer size);

    List<Blog> listBlogQuery(String query);

    Page<Blog> getBlogs(Pageable pageable, BlogVo blogVo);

    Blog saveBlog(Blog blog);

    Blog updateBlog(long id,Blog blog);

    void deleteBlog(long id);

    void updateviews(long id);
}
